package cn.edu.seig.textbook.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author day
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_textbooks")
public class Textbooks implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 教材ID
     */
    @TableId(value = "textbook_id", type = IdType.AUTO)
    private Integer textbookId;

    /**
     * 课程名称
     */
    @TableField("course_name")
    private String courseName;

    /**
     * 书名
     */
    @TableField("book_name")
    private String bookName;

    /**
     * 作者
     */
    @TableField("author")
    private String author;

    /**
     * ISBN
     */
    @TableField("isbn")
    private String ISBN;

    /**
     * 价格
     */
    @TableField("price")
    private Double price;

    /**
     * 出版日期
     */
    @TableField("publish_date")
    private LocalDate publishDate;

    /**
     * 版本
     */
    @TableField("version")
    private String version;


}
